<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <title>权限列表--layui后台管理模板 2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/css/public.css" media="all" />
</head>
<body class="childrenBody">
<div class="gray-bg">
    <div class="layui-fluid">
        <div class="layui-row">
            <div class="layui-col-xs12">
                <div class="layui-card">
                    <div class="layui-card-body">
                        <div class="layui-row">
                            <div class="layui-col-md12">
                                <form class="layui-form" lay-filter="form-post-filter">
                                    <div class="layui-form toolbar">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">岗位编码：</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="postCode" id="postCode" placeholder="" autocomplete="off"
                                                       class="layui-input"/>
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">岗位名称：</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="postName" id="postName" placeholder="" autocomplete="off"
                                                       class="layui-input"/>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row" style="text-align: right">
                                        <button class="layui-btn" lay-submit data-type="reload">搜索</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-card">
                    <div class="layui-card-body">
                        <table id="table_post" lay-filter="table_post">
                        </table>
                        <script type="text/html" id="col_operation">
                            <@shiro.hasPermission name="system:post:edit">
                            <a  class="layui-btn layui-btn-xs" href="javascript:;"
                               lay-event="edit"><i class="fa fa-edit"></i>编辑</a>
                            </@shiro.hasPermission >
                            <@shiro.hasPermission name="system:post:remove">
                            <a class="layui-btn layui-btn-xs"
                               href="javascript:;" lay-event="del"><i class="fa fa-remove"></i>删除</a>
                            </@shiro.hasPermission >
                        </script>
                        <script type="text/html" id="table_post_toolbar">
                            <div class="layui-btn-container" >
                                <@shiro.hasPermission name="system:post:add">
                                <button class="layui-btn layui-btn-sm" lay-event="toolbar-post-add">新增
                                </button>
                            </@shiro.hasPermission >
                                <@shiro.hasPermission name="system:post:remove">
                                <button class="layui-btn layui-btn-sm" lay-event="toolbar-post-remove">批量删除
                                </button>
                            </@shiro.hasPermission >
                            </div>
                        </script>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="/layui/polyfill.min.js"></script>
<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/layui/swotadmin.js"></script>
<script type="text/javascript">
    var prefix = "/system/post";
</script>
<script>
    layui.config({
        base:'/js/system/post/'
    }).use(['post'], function(){
        var post = layui.post;
        post.init({
            "prefix":prefix

        });
    });
</script>
</body>
</html>